<!-- 新增编辑模型 -->
<template>
  <el-dialog
    :title="dialogTitle"
    :visible.sync="dialogVisible"
    width="35%"
    destroy-on-close
  >
    <el-upload
      ref="uploadRef"
      class="upload-demo"
      action=""
      drag
      accept=".xls"
      :auto-upload="false"
      :limit="1"
      :on-remove="handleRemove"
      :on-change="handleChangeFiles"
      :show-file-list="false"
    >
      <i class="el-icon-upload"></i>
      <div>将文件拖拽到此处，或<em>点击上传</em></div>
    </el-upload>

    <template #footer>
      <el-button @click="dialogVisible = false">取消</el-button>
      <el-button type="primary" @click="confirmDialog">确定</el-button>
    </template>
  </el-dialog>
</template>
<script>
export default {
  name: "OperaDialog",
  data() {
    return {
      dialogTitle: "导入数据",
      dialogVisible: false,
    };
  },
  methods: {
    // 打开弹窗
    openDialog(selectType, info) {
      this.dialogVisible = true;
    },
    confirmDialog() {},
  },
};
</script>
<style scoped></style>
